package w17;

import java.util.Arrays;

public class S01 {
	//成员变量的默认值
	int i;
	double d;
	char c;
	boolean b;
	Circle circle;
	
	public static void main(String[] args) {
		S01 s = new S01();
		System.out.println("int default value = "+ s.i);
		System.out.println("double default value = "+ s.d);
		System.out.println("char default value = "+ (int)s.c);
		System.out.println("boolean default value = "+ s.b);
		System.out.println("Circle default value = "+ s.circle);
		int ii=123; //局部变量，必须初始化之后才能使用
		System.out.println("local variable value = "+ ii);
		int[]a=new int[5];
		System.out.println(Arrays.toString(a));//数组对象各元素的默认值
	}

}
